.profile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.profile-overlay.active {
    display: flex;
}

.profile-panel {
    width: 100%;
    max-width: 400px;
    max-height: 75vh;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--glass-border);
    border-bottom: none;
}

.profile-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(59,130,246,0.4), 0 0 0 2px rgba(59,130,246,0.2);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.profile-status {
    font-size: 13px;
    color: var(--online);
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}

.profile-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
}

.profile-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(59,130,246,0.2);
}

.profile-action svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.profile-menu {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.1s ease;
    width: 100%;
}

.profile-menu-item:hover {
    background: var(--bg-hover);
}

.profile-menu-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.profile-menu-item.danger {
    color: var(--danger);
}

.profile-menu-item.danger:hover {
    background: rgba(239,68,68,0.08);
}

.profile-menu-item.danger svg {
    color: var(--danger);
}

.profile-input-group {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.15s;
}

.profile-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

.profile-input::placeholder {
    color: var(--text-muted);
    font-size: 11px;
}
